<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <?php echo $this->partial('_menu.phtml');?>
            <!--/.well -->
        </div>
        <!--/span-->
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                	<div class="top-link">
                	    <a href="<?php echo $this->baseUrl('admin/article/add-article') ?>/?num_vente=<?php echo $this->numVente ?>">Ajout</a>
                	</div>
                    <table>
                        <thead style="width:100%">
                            <tr>
                                <th style="width:10% ">Date</th>
                                <th style="width:60% ">Titre</th>
                                <th style="width:10% ">Editer</th>
                                <th style="width:10% ">Supprimer</th>
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <?php if(count($this->paginator) > 1) :?>
                                        <?php echo $this->paginationControl($this->paginator, 'Sliding', '_pagination.phtml'); ?>
                                    <?php endif;?>
                                    <!-- End .pagination -->

                                    <div class="clear"></div>
                               </td>
                            </tr>
                        </tfoot>
                        <tbody style="width:100%">
                        <?php
                        foreach($this->paginator as $ac):
                            $dtpubli = new DateTime($ac['dtpubli']);
                        ?>
                            <tr>
                                <td style="text-align:left"><?php echo $dtpubli->format('d/m/Y');?></td>
                                <td style="text-align:left"><?php echo $ac['titre']; ?></td>
                                <td>
                                	<a href="<?php echo $this->baseUrl() ?>/admin/article/edit/id/<?php echo $ac['p_actu']?>"><img src="<?php echo $this->baseUrl() ?>/images/pencil.png"></a>
                                </td>
                                <td>
                                	<a href="<?php echo $this->baseUrl('admin/article/delete/id/' . $ac['p_actu']) ?>" class="delete-item"><img src="<?php echo $this->baseUrl() ?>/images/cross.png"></a>
                                </td>
                        <?php endforeach ?>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <!--/row-->
        </div>
        <!--/span-->
    </div>
    <!--/row-->
</div>